package com.hotel.service;

import com.hotel.dao.HomeMapper;
import com.hotel.pojo.Home;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;

@Service
public class HomeServiceImpl  implements HomeService{

    @Autowired
    HomeMapper homeMapper;


    @Override
    public int addHome(Home home) {
        return homeMapper.addHome(home);
    }

    @Override
    public int deleteHomeById(int id) {
        return homeMapper.deleteHomeById(id);
    }

    @Override
    public int updateHomeById(Home home) {
        return homeMapper.updateHomeById(home);
    }

    @Override
    public Home queryHomeById(Integer  id) {
        return homeMapper.queryHomeById(id);
    }

    @Override
    public ArrayList<Home> queryAllHome() {
        return homeMapper.queryAllHome();
    }

    @Override
    public Home queryHomeByNum(int num) {
        return homeMapper.queryHomeByNum(num);
    }

    @Override
    public int updateH_TypeById(Home home) {
        return homeMapper.updateH_TypeById(home);
    }

    @Override
    public int findHomeNumA1() {
        return homeMapper.findHomeNumA1();
    }

    @Override
    public int findHomeNumA2() {
        return homeMapper.findHomeNumA2();
    }

    @Override
    public int findHomeNumA3() {
        return homeMapper.findHomeNumA3();
    }

    @Override
    public int findHomeNumB1() {
        return homeMapper.findHomeNumB1();
    }

    @Override
    public int findHomeNumB2() {
        return homeMapper.findHomeNumB2();
    }

    @Override
    public int findHomeNumB3() {
        return homeMapper.findHomeNumB3();
    }

    @Override
    public int findHomeNumC1() {
        return homeMapper.findHomeNumC1();
    }

    @Override
    public int findHomeNumC2() {
        return homeMapper.findHomeNumC2();
    }

    @Override
    public int findHomeNumC3() {
        return homeMapper.findHomeNumC3();
    }

    @Override
    public int findHomeNumD1() {
        return homeMapper.findHomeNumD1();
    }

    @Override
    public int findHomeNumD2() {
        return homeMapper.findHomeNumD2();
    }

    @Override
    public int findHomeNumD3() {
        return homeMapper.findHomeNumD3();
    }

    @Override
    public int findHomeNumE1() {
        return homeMapper.findHomeNumE1();
    }

    @Override
    public int findHomeNumE2() {
        return homeMapper.findHomeNumE2();
    }

    @Override
    public int findHomeNumE3() {
        return homeMapper.findHomeNumE3();
    }

}
